package com.haixiaoke.saas.tenant.domain;

import com.haixiaoke.saas.common.utils.TreeUtil.ITree;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.Objects;

/**
 * @Author panda
 * @Date 2025/8/5
 **/
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class TenantTree extends ITree<String> {

    /**
     * 名称
     */
    private String tenantName;

    /**
     * 机构状态
     */
    private String tenantState;

    /**
     * 是否自动生成账单:0否;1是
     */
    private String generateBillState;

    /**
     * 企业人数
     */
    private Integer num;

    /**
     * 管理员手机号
     */
    private String phonenumber;

    @Override
    protected boolean firstLevel() {
        return Objects.equals(getParentId(), "0");
    }

    public String getTenantName() {
        return tenantName;
    }

    public void setTenantName(String tenantName) {
        this.tenantName = tenantName;
    }

    public String getTenantState() {
        return tenantState;
    }

    public void setTenantState(String tenantState) {
        this.tenantState = tenantState;
    }

    public String getGenerateBillState() {
        return generateBillState;
    }

    public void setGenerateBillState(String generateBillState) {
        this.generateBillState = generateBillState;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public String getPhonenumber() {
        return phonenumber;
    }

    public void setPhonenumber(String phonenumber) {
        this.phonenumber = phonenumber;
    }
}
